/**
 * Copyright (c) 2000-2012 Liferay, Inc. All rights reserved.
 *
 * This library is free software; you can redistribute it and/or modify it under
 * the terms of the GNU Lesser General Public License as published by the Free
 * Software Foundation; either version 2.1 of the License, or (at your option)
 * any later version.
 *
 * This library is distributed in the hope that it will be useful, but WITHOUT
 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
 * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
 * details.
 */

package slcu.service.persistence;

import com.liferay.portal.service.persistence.BasePersistence;

import slcu.model.SolicitudAltaAlumnoMailDestino;

/**
 * The persistence interface for the SolicitudAltaAlumnoMailDestinos service.
 *
 * <p>
 * Caching information and settings can be found in <code>portal.properties</code>
 * </p>
 *
 * @author tito
 * @see SolicitudAltaAlumnoMailDestinoPersistenceImpl
 * @see SolicitudAltaAlumnoMailDestinoUtil
 * @generated
 */
public interface SolicitudAltaAlumnoMailDestinoPersistence
	extends BasePersistence<SolicitudAltaAlumnoMailDestino> {
	/*
	 * NOTE FOR DEVELOPERS:
	 *
	 * Never modify or reference this interface directly. Always use {@link SolicitudAltaAlumnoMailDestinoUtil} to access the SolicitudAltaAlumnoMailDestinos persistence. Modify <code>service.xml</code> and rerun ServiceBuilder to regenerate this interface.
	 */

	/**
	* Caches the SolicitudAltaAlumnoMailDestinos in the entity cache if it is enabled.
	*
	* @param solicitudAltaAlumnoMailDestino the SolicitudAltaAlumnoMailDestinos
	*/
	public void cacheResult(
		slcu.model.SolicitudAltaAlumnoMailDestino solicitudAltaAlumnoMailDestino);

	/**
	* Caches the SolicitudAltaAlumnoMailDestinoses in the entity cache if it is enabled.
	*
	* @param solicitudAltaAlumnoMailDestinos the SolicitudAltaAlumnoMailDestinoses
	*/
	public void cacheResult(
		java.util.List<slcu.model.SolicitudAltaAlumnoMailDestino> solicitudAltaAlumnoMailDestinos);

	/**
	* Creates a new SolicitudAltaAlumnoMailDestinos with the primary key. Does not add the SolicitudAltaAlumnoMailDestinos to the database.
	*
	* @param mailDestinoId the primary key for the new SolicitudAltaAlumnoMailDestinos
	* @return the new SolicitudAltaAlumnoMailDestinos
	*/
	public slcu.model.SolicitudAltaAlumnoMailDestino create(long mailDestinoId);

	/**
	* Removes the SolicitudAltaAlumnoMailDestinos with the primary key from the database. Also notifies the appropriate model listeners.
	*
	* @param mailDestinoId the primary key of the SolicitudAltaAlumnoMailDestinos
	* @return the SolicitudAltaAlumnoMailDestinos that was removed
	* @throws slcu.NoSuchSolicitudAltaAlumnoMailDestinoException if a SolicitudAltaAlumnoMailDestinos with the primary key could not be found
	* @throws SystemException if a system exception occurred
	*/
	public slcu.model.SolicitudAltaAlumnoMailDestino remove(long mailDestinoId)
		throws com.liferay.portal.kernel.exception.SystemException,
			slcu.NoSuchSolicitudAltaAlumnoMailDestinoException;

	public slcu.model.SolicitudAltaAlumnoMailDestino updateImpl(
		slcu.model.SolicitudAltaAlumnoMailDestino solicitudAltaAlumnoMailDestino,
		boolean merge)
		throws com.liferay.portal.kernel.exception.SystemException;

	/**
	* Returns the SolicitudAltaAlumnoMailDestinos with the primary key or throws a {@link slcu.NoSuchSolicitudAltaAlumnoMailDestinoException} if it could not be found.
	*
	* @param mailDestinoId the primary key of the SolicitudAltaAlumnoMailDestinos
	* @return the SolicitudAltaAlumnoMailDestinos
	* @throws slcu.NoSuchSolicitudAltaAlumnoMailDestinoException if a SolicitudAltaAlumnoMailDestinos with the primary key could not be found
	* @throws SystemException if a system exception occurred
	*/
	public slcu.model.SolicitudAltaAlumnoMailDestino findByPrimaryKey(
		long mailDestinoId)
		throws com.liferay.portal.kernel.exception.SystemException,
			slcu.NoSuchSolicitudAltaAlumnoMailDestinoException;

	/**
	* Returns the SolicitudAltaAlumnoMailDestinos with the primary key or returns <code>null</code> if it could not be found.
	*
	* @param mailDestinoId the primary key of the SolicitudAltaAlumnoMailDestinos
	* @return the SolicitudAltaAlumnoMailDestinos, or <code>null</code> if a SolicitudAltaAlumnoMailDestinos with the primary key could not be found
	* @throws SystemException if a system exception occurred
	*/
	public slcu.model.SolicitudAltaAlumnoMailDestino fetchByPrimaryKey(
		long mailDestinoId)
		throws com.liferay.portal.kernel.exception.SystemException;

	/**
	* Returns all the SolicitudAltaAlumnoMailDestinoses where mail = &#63;.
	*
	* @param mail the mail
	* @return the matching SolicitudAltaAlumnoMailDestinoses
	* @throws SystemException if a system exception occurred
	*/
	public java.util.List<slcu.model.SolicitudAltaAlumnoMailDestino> findByMail(
		java.lang.String mail)
		throws com.liferay.portal.kernel.exception.SystemException;

	/**
	* Returns a range of all the SolicitudAltaAlumnoMailDestinoses where mail = &#63;.
	*
	* <p>
	* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
	* </p>
	*
	* @param mail the mail
	* @param start the lower bound of the range of SolicitudAltaAlumnoMailDestinoses
	* @param end the upper bound of the range of SolicitudAltaAlumnoMailDestinoses (not inclusive)
	* @return the range of matching SolicitudAltaAlumnoMailDestinoses
	* @throws SystemException if a system exception occurred
	*/
	public java.util.List<slcu.model.SolicitudAltaAlumnoMailDestino> findByMail(
		java.lang.String mail, int start, int end)
		throws com.liferay.portal.kernel.exception.SystemException;

	/**
	* Returns an ordered range of all the SolicitudAltaAlumnoMailDestinoses where mail = &#63;.
	*
	* <p>
	* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
	* </p>
	*
	* @param mail the mail
	* @param start the lower bound of the range of SolicitudAltaAlumnoMailDestinoses
	* @param end the upper bound of the range of SolicitudAltaAlumnoMailDestinoses (not inclusive)
	* @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
	* @return the ordered range of matching SolicitudAltaAlumnoMailDestinoses
	* @throws SystemException if a system exception occurred
	*/
	public java.util.List<slcu.model.SolicitudAltaAlumnoMailDestino> findByMail(
		java.lang.String mail, int start, int end,
		com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
		throws com.liferay.portal.kernel.exception.SystemException;

	/**
	* Returns the first SolicitudAltaAlumnoMailDestinos in the ordered set where mail = &#63;.
	*
	* @param mail the mail
	* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
	* @return the first matching SolicitudAltaAlumnoMailDestinos
	* @throws slcu.NoSuchSolicitudAltaAlumnoMailDestinoException if a matching SolicitudAltaAlumnoMailDestinos could not be found
	* @throws SystemException if a system exception occurred
	*/
	public slcu.model.SolicitudAltaAlumnoMailDestino findByMail_First(
		java.lang.String mail,
		com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
		throws com.liferay.portal.kernel.exception.SystemException,
			slcu.NoSuchSolicitudAltaAlumnoMailDestinoException;

	/**
	* Returns the first SolicitudAltaAlumnoMailDestinos in the ordered set where mail = &#63;.
	*
	* @param mail the mail
	* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
	* @return the first matching SolicitudAltaAlumnoMailDestinos, or <code>null</code> if a matching SolicitudAltaAlumnoMailDestinos could not be found
	* @throws SystemException if a system exception occurred
	*/
	public slcu.model.SolicitudAltaAlumnoMailDestino fetchByMail_First(
		java.lang.String mail,
		com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
		throws com.liferay.portal.kernel.exception.SystemException;

	/**
	* Returns the last SolicitudAltaAlumnoMailDestinos in the ordered set where mail = &#63;.
	*
	* @param mail the mail
	* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
	* @return the last matching SolicitudAltaAlumnoMailDestinos
	* @throws slcu.NoSuchSolicitudAltaAlumnoMailDestinoException if a matching SolicitudAltaAlumnoMailDestinos could not be found
	* @throws SystemException if a system exception occurred
	*/
	public slcu.model.SolicitudAltaAlumnoMailDestino findByMail_Last(
		java.lang.String mail,
		com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
		throws com.liferay.portal.kernel.exception.SystemException,
			slcu.NoSuchSolicitudAltaAlumnoMailDestinoException;

	/**
	* Returns the last SolicitudAltaAlumnoMailDestinos in the ordered set where mail = &#63;.
	*
	* @param mail the mail
	* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
	* @return the last matching SolicitudAltaAlumnoMailDestinos, or <code>null</code> if a matching SolicitudAltaAlumnoMailDestinos could not be found
	* @throws SystemException if a system exception occurred
	*/
	public slcu.model.SolicitudAltaAlumnoMailDestino fetchByMail_Last(
		java.lang.String mail,
		com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
		throws com.liferay.portal.kernel.exception.SystemException;

	/**
	* Returns the SolicitudAltaAlumnoMailDestinoses before and after the current SolicitudAltaAlumnoMailDestinos in the ordered set where mail = &#63;.
	*
	* @param mailDestinoId the primary key of the current SolicitudAltaAlumnoMailDestinos
	* @param mail the mail
	* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
	* @return the previous, current, and next SolicitudAltaAlumnoMailDestinos
	* @throws slcu.NoSuchSolicitudAltaAlumnoMailDestinoException if a SolicitudAltaAlumnoMailDestinos with the primary key could not be found
	* @throws SystemException if a system exception occurred
	*/
	public slcu.model.SolicitudAltaAlumnoMailDestino[] findByMail_PrevAndNext(
		long mailDestinoId, java.lang.String mail,
		com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
		throws com.liferay.portal.kernel.exception.SystemException,
			slcu.NoSuchSolicitudAltaAlumnoMailDestinoException;

	/**
	* Returns all the SolicitudAltaAlumnoMailDestinoses.
	*
	* @return the SolicitudAltaAlumnoMailDestinoses
	* @throws SystemException if a system exception occurred
	*/
	public java.util.List<slcu.model.SolicitudAltaAlumnoMailDestino> findAll()
		throws com.liferay.portal.kernel.exception.SystemException;

	/**
	* Returns a range of all the SolicitudAltaAlumnoMailDestinoses.
	*
	* <p>
	* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
	* </p>
	*
	* @param start the lower bound of the range of SolicitudAltaAlumnoMailDestinoses
	* @param end the upper bound of the range of SolicitudAltaAlumnoMailDestinoses (not inclusive)
	* @return the range of SolicitudAltaAlumnoMailDestinoses
	* @throws SystemException if a system exception occurred
	*/
	public java.util.List<slcu.model.SolicitudAltaAlumnoMailDestino> findAll(
		int start, int end)
		throws com.liferay.portal.kernel.exception.SystemException;

	/**
	* Returns an ordered range of all the SolicitudAltaAlumnoMailDestinoses.
	*
	* <p>
	* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
	* </p>
	*
	* @param start the lower bound of the range of SolicitudAltaAlumnoMailDestinoses
	* @param end the upper bound of the range of SolicitudAltaAlumnoMailDestinoses (not inclusive)
	* @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
	* @return the ordered range of SolicitudAltaAlumnoMailDestinoses
	* @throws SystemException if a system exception occurred
	*/
	public java.util.List<slcu.model.SolicitudAltaAlumnoMailDestino> findAll(
		int start, int end,
		com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
		throws com.liferay.portal.kernel.exception.SystemException;

	/**
	* Removes all the SolicitudAltaAlumnoMailDestinoses where mail = &#63; from the database.
	*
	* @param mail the mail
	* @throws SystemException if a system exception occurred
	*/
	public void removeByMail(java.lang.String mail)
		throws com.liferay.portal.kernel.exception.SystemException;

	/**
	* Removes all the SolicitudAltaAlumnoMailDestinoses from the database.
	*
	* @throws SystemException if a system exception occurred
	*/
	public void removeAll()
		throws com.liferay.portal.kernel.exception.SystemException;

	/**
	* Returns the number of SolicitudAltaAlumnoMailDestinoses where mail = &#63;.
	*
	* @param mail the mail
	* @return the number of matching SolicitudAltaAlumnoMailDestinoses
	* @throws SystemException if a system exception occurred
	*/
	public int countByMail(java.lang.String mail)
		throws com.liferay.portal.kernel.exception.SystemException;

	/**
	* Returns the number of SolicitudAltaAlumnoMailDestinoses.
	*
	* @return the number of SolicitudAltaAlumnoMailDestinoses
	* @throws SystemException if a system exception occurred
	*/
	public int countAll()
		throws com.liferay.portal.kernel.exception.SystemException;
}